package com.ktwlrj.securitycenter.mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktwlrj.core.base.SuperMapper;
import com.ktwlrj.securitycenter.controller.args.SafeSpecialApprovePageArgs;
import com.ktwlrj.securitycenter.controller.args.SafeSpecialPageArgs;
import com.ktwlrj.securitycenter.dto.SafeSpecialApprovePageDto;
import com.ktwlrj.securitycenter.dto.SafeSpecialPageDto;
import com.ktwlrj.securitycenter.entity.SafeSpecialEntity;

/**
 * (SafeSpecial)持久层
 *
 * @author code generation
 * @date 2020-02-24 18:15:41
 * @since JDK1.8
 */
@Repository
public interface SafeSpecialMapper extends SuperMapper<SafeSpecialEntity>{
   /**
     * 分页查询
     *
     * @param args ${@link SafeSpecialPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafeSpecialPageDto> ${@link IPage<SafeSpecialPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafeSpecialPageDto> page(Page page, @Param("query") SafeSpecialPageArgs args);
    
    /**
     * 历史分页查询
     *
     * @param args ${@link SafeSpecialPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafeSpecialPageDto> ${@link IPage<SafeSpecialPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafeSpecialPageDto> historyPage(Page page, @Param("query") SafeSpecialPageArgs args);
    
    /**
     * 审批分页查询
     *
     * @param args ${@link SafeSpecialPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafeSpecialPageDto> ${@link IPage<SafeSpecialPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafeSpecialApprovePageDto> approvePage(Page page, @Param("query") SafeSpecialApprovePageArgs args);
}